﻿<%@ Page Language="C#" MasterPageFile="~/Global/Other.Master" AutoEventWireup="true"
    CodeBehind="NewsList.aspx.cs" Inherits="TVC_WEB.Global.NewsList" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div runat="server" id="listnews">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr>
                    <td class="tabgreen">
                        <div class="bar_boxleft barconten_suppage_width">
                            <div class="bar_boxright barconten_suppage_width">
                                <div class="bartitle bartitleblack">
                                    <h1><asp:Label ID="lbcatenews" runat="server" Text=""></asp:Label></h1>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="contentbdr_1 setpadding8px">
                        <table width="100%" cellspacing="0" cellpadding="0" border="0">
                            <tbody>
                                <tr>
                                    <td>
                                        <div ">
                                            <!--Content News-->
                                            <div>
                                                <div>
                                                    <asp:DataList ID="lstTinTuc" runat="server" RepeatColumns="1" Width="98%" CellSpacing="0">
                                                        <ItemStyle HorizontalAlign="Justify" />
                                                        <ItemTemplate>
                                                            <table style="text-align: left; vertical-align: top;">
                                                                <tbody>
                                                                    <tr>
                                                                        <td style="width: 160px; padding-right: 10px;">
                                                                            <a href="NewsDetail.aspx?newid=<%# Eval("ID").ToString()%>">
                                                                                <img style="width: 160px; border-width: 0px;" src="/Uploads/Images/<%# Eval("Image").ToString()%>"
                                                                                    title="<%# Eval("TitleVN").ToString()%>">
                                                                            </a>&nbsp;&nbsp;
                                                                        </td>
                                                                        <td style="vertical-align: top;">
                                                                           
                                                                                <a href="NewsDetail.aspx?newid=<%# Eval("ID").ToString()%>">
                                                                                    <div style="font-size:large;font-weight:bold"> <%# Eval("TitleVN").ToString()%></div>
                                                                                </a>
                                                                            
                                                                            <div style="font-size:medium">
                                                                                <%# Eval("ShortDecribesVN").ToString()%>
                                                                            </div>
                                                                            ... ...<a href="NewsDetail.aspx?newid=<%# Eval("ID").ToString()%>">xem chi 
                                                                                tiết </a>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                            <hr>
                                                        </ItemTemplate>
                                                    </asp:DataList>
                                                </div>
                                                <br>
                                            </div>
                                            <!--End News-->
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <table border="0" width="100%" style="background: none repeat scroll 0 0 #F1F1F1;">
            <tr>
                <td width="10%">
                    &nbsp;
                </td>
                <td width="10%" valign="middle" align="center" style="padding-top: 4px;">
                    <asp:LinkButton ID="btnPrev" runat="server" OnClick="btnPrev_Click">Trước</asp:LinkButton>
                </td>
                <td align="center">
                    <table border="0" width="100%" id="tblPager" runat="server" class="pager">
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="10%" valign="middle" align="center" style="padding-top: 4px;">
                    <asp:LinkButton ID="btnNext" runat="server" OnClick="btnNext_Click">Sau</asp:LinkButton>
                </td>
                <td width="10%">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <div runat="server" id="listdetailnews">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tbody>
                <tr>
                    <td class="tabgreen">
                        <div class="bar_boxleft barconten_suppage_width">
                            <div class="bar_boxright barconten_suppage_width">
                                <div class="bartitle bartitleblack">
                                    <asp:Label ID="lbCategoryNew" runat="server" Text=""></asp:Label>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="contentbdr_1 setpadding8px">
                        <!--Content News-->
                        <asp:DataList ID="listdetailnew" runat="server" RepeatColumns="1" Width="98%" CellSpacing="0">
                            <ItemTemplate>
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tbody>
                                        <tr>
                                            <td>
                                                <div >
                                                    <!--Content News-->
                                                    <div>
                                                        <div>
                                                            <h2>
                                                                <%# Eval("TitleVN")%></a>
                                                            </h2>
                                                            <div style="padding: 10px;">
                                                                <img align="Left" style="padding-right: 10px;" src="./Uploads/Image/<%# Eval("Image").ToString()%>"></div>
                                                            <%# Formatdatepost(Eval("CreateDay").ToString())%><br>
                                                            <div style="font-weight: bold;">
                                                                <div>
                                                                    <%# Eval("ShortDecribesVN").ToString()%>
                                                                </div>
                                                            </div>
                                                            <br>
                                                            <div>
                                                                <%# Eval("LongDecribesVN").ToString()%>
                                                            </div>
                                                        </div>
                                                        <div style="float: right">
                                                            Nguồn :
                                                            <%# Eval("Source").ToString()%>
                                                        </div>
                                                    </div>
                                                    <!--End News-->
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                        <!--End News-->
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="padding-left: 20px; padding-top: 20px">
                            <div class="bar_boxleft barconten_suppage_width" style="float: left">
                                <div class="bar_boxright barconten_suppage_width">
                                    <div class="bartitle bartitleblack">
                                        Các tin khác                                  </div>
                                </div>
                            </div>
                            <div>
                                <ul>
                                    <li><a href="#"></a></li>
                                    <asp:DataList ID="listListNews" runat="server" RepeatColumns="1" Width="98%" CellSpacing="0"
                                        RepeatLayout="Flow">
                                        <ItemTemplate>
                                            <li><a onclick="" href="NewsDetail.aspx?newid=<%# Eval("ID").ToString()%>">
                                                <b><%# Eval("TitleVN").ToString()%></b></a>&nbsp; 
                                                <%# Formatdatepost(Eval("CreateDay").ToString(), Eval("IDNewsCategory").ToString()).ToString()%></li>
                                        </ItemTemplate>
                                    </asp:DataList>
                                </ul>
                            </div>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
